<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="app">
        <input type="text" v-model="message">
        <!-- 实现 v-model的原理 -->
        <input type="text" v-bind:value="message" @input="message=$event.target.value">

    </div>

    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                message: '我是你爹!'
            },
            methods: {
                valueChange(event) {
                    this.message = event.target.value
                }
            },
            filters: {

            }
        });
    </script>
</body>

</html>